﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI.WebControls;
using System.Web.UI;
/// <summary>
///DatePicker 的摘要说明
/// </summary>
public class DatePicker : TextBox
{
	public DatePicker()
	{
        this.ReadOnly = true;        
	}

    protected override void Render(System.Web.UI.HtmlTextWriter writer)
    {
        base.Render(writer);
                
        string scripttxt = "$(document).ready(function() {Date.format = 'yyyy-mm-dd';$('#" + this.ID + "').datePicker({ startDate: '1996-01-01' });});";
        Helper.WriteScriptAtTop(scripttxt,this.ID+"_SetDatePickerScript");
        //Helper.WriteScriptAtBottom(scripttxt,this.ID+"_SetDatePickerScript");
        //writer.Write(scripttxt);
    }    
}
